/**************************************************************************/ /**
 *           Cortex-M Middle/Upper layer Debug driver Template for µVision
 *
 * @version  V1.0.1
 * @date     $Date: 2015-04-28 15:09:20 +0200 (Tue, 28 Apr 2015) $
 *
 * @note
 * Copyright (C) 2009-2015 ARM Limited. All rights reserved.
 *
 * @par
 * ARM Limited (ARM) is supplying this software for use with Keil uVision
 * and Cortex-M processor based microcontrollers.
 *
 * @par
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 *
 ******************************************************************************/

#pragma once

#include "resource.h"
#include "..\AGDI.h"
#include "..\BOM.H"

#include "Trace.h"
#include <algorithm>
#include <vector>
using namespace std;


// use UV4 ExcTrc Data Window
int  ExcTrc(excTrcData_t *excTrcData);
int  ExcTrcGetData(excTrcData_t *excTrcData);
void ExcTrcResetData(excTrcData_t *excTrcData);
void ExcTrcGetIRQLines(excTrcData_t *excTrcData);
void EvtCntGetData(excTrcData_t *excTrcData);
void EvtCntResetData(excTrcData_t *excTrcData);
void ExcTrcGetConfig(excTrcData_t *excTrcData);
void ExcTrcSetConfig(excTrcData_t *excTrcData);

void CpiClr(void);
void ExcClr(void);
void SleepClr(void);
void LsuClr(void);
void FoldClr(void);
